﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Executed.ascx.cs" Inherits="Workflow.Alerts.Sublayouts.Executed" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Src="MaterialsGrid.ascx" TagPrefix="mg" TagName="MaterialGrid" %>
<div id="executed" runat="server" class="additionPopup inProgressExcForm">
	<div class="floatLeft additionPopupLeft">
		<div class="rowBoxLabel innerHeader labelPartApprove" id="DivGegevens" runat="server">
			Gegevens wijzingen</div>
		<div id="area" runat="server" class="boxRow">
			<asp:Label runat="server" ID="labelArea" AssociatedControlID="txtArea" Text="Gebied:"
				CssClass="labelStart"></asp:Label>
			<telerik:RadNumericTextBox ID="txtArea" runat="server" CssClass="actualArea styledInput styledInputM2 floatRight"
				ShowSpinButtons="false" IncrementSettings-InterceptArrowKeys="true" IncrementSettings-InterceptMouseWheel="true"
				EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false" Skin="workflowArea"
				MinValue="1" MaxValue="15" NumberFormat-DecimalDigits="0" />
			<asp:RequiredFieldValidator Display="Dynamic" ID="rvfArea" ControlToValidate="txtArea"
				runat="server" ErrorMessage="RequiredFieldValidator" />
		</div>
		<div id="startdate" runat="server" class="boxRow">
			<asp:Label runat="server" ID="labelStart" AssociatedControlID="rdpStartDate" Text="Start:"
				CssClass="labelStart"></asp:Label>
			<telerik:RadDatePicker ID="rdpStartDate" runat="server" EnableEmbeddedBaseStylesheet="False"
				EnableEmbeddedSkins="False" Skin="workflow">
				<calendar userowheadersasselectors="False" usecolumnheadersasselectors="False" viewselectortext="x">
                </calendar>
				<datepopupbutton imageurl="" hoverimageurl=""></datepopupbutton>
				<dateinput displaydateformat="d-M-yyyy" dateformat="d-M-yyyy" autopostback="True">
                </dateinput>
			</telerik:RadDatePicker>
			<asp:RequiredFieldValidator Display="Dynamic" ID="rvfStartDate" ControlToValidate="rdpStartDate"
				runat="server" ErrorMessage="RequiredFieldValidator" />
		</div>
		<div id="enddate" runat="server" class="boxRow">
			<asp:Label runat="server" ID="labelGereed" AssociatedControlID="rdpEndDate" Text="Gereed:"
				CssClass="labelGereed"></asp:Label>
			<telerik:RadDatePicker ID="rdpEndDate" runat="server" EnableEmbeddedBaseStylesheet="False"
				EnableEmbeddedSkins="False" Skin="workflow">
				<calendar userowheadersasselectors="False" usecolumnheadersasselectors="False" viewselectortext="x">
                </calendar>
				<datepopupbutton imageurl="" hoverimageurl=""></datepopupbutton>
				<dateinput displaydateformat="d-M-yyyy" dateformat="d-M-yyyy" autopostback="True">
                </dateinput>
			</telerik:RadDatePicker>
			<asp:RequiredFieldValidator Display="Dynamic" ID="rvfEndDate" ControlToValidate="rdpEndDate"
				runat="server" ErrorMessage="RequiredFieldValidator" />
			<asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="Definitieve einddatum kan niet eerder zijn dan startdatum"
				Operator="GreaterThanEqual" ControlToValidate="rdpEndDate" ControlToCompare="rdpStartDate"
				Type="Date" />
		</div>
		<div id="contractor" runat="server" class="boxRow" visible="false">
			<asp:Label runat="server" ID="lblContractors" AssociatedControlID="ddlContractors"
				Text="Herstel:" CssClass="labelGereed"></asp:Label>
			<asp:DropDownList ID="ddlContractors" runat="server" CssClass="hiddenDropdown js_hiddenDropdown styledDropdown220">
			</asp:DropDownList>
		</div>
		<div id="comments" runat="server">
			<div class="newlineLabel">
				Toelichting:</div>
			<asp:TextBox ID="txtComments" runat="server" TextMode="MultiLine"></asp:TextBox>
		</div>
	</div>
	<div class="floatRight additionPopupRight">
		<div class="rowBoxLabel innerHeader">
		</div>
		<div class="newlineLabel">
			Verbruikt materiaal:</div>
		<div id="materials" runat="server" class="materialsRadgrid">
			<mg:MaterialGrid id="mgList" runat="server">
			</mg:MaterialGrid>
		</div>
		<div class="clear">
		</div>
		<div id="buttons" runat="server" class="buttonContainer">
			<asp:Button ID="btnCancel" runat="server" Text="Annuleren" CssClass="styledButton styledButton150"
				CausesValidation="False" CommandName="Cancel" OnCommand="btnClick_Command" />
			<asp:Button ID="btnUpdate" runat="server" Text="Opslaan" CssClass="styledButton styledButton150"
				CommandName="Update" OnCommand="btnClick_Command" />
		</div>
	</div>
</div>
<asp:PlaceHolder ID="phClose" runat="server" Visible="false">

	<script type="text/javascript">
        parent.workflow.openFrame.Close(true)
	</script>

</asp:PlaceHolder>

<script type="text/javascript">
    jQuery(document).ready(function() {
        workflow.form.select.Init(".js_hiddenDropdown:not(.init)");
        jQuery("a.rcCalPopup").not(".rcDisabled").click(function() {
            setTimeout(function() {
                var docWidth = jQuery(document).width();
                var calWidth = jQuery(".RadCalendar_workflow").width();
                var leftOffset = (docWidth - calWidth) / 2;
                jQuery(".RadCalendarPopup").css({
                    "left": leftOffset,
                    "top": "0"
                });
            }, 50);
        });
        jQuery(".rcMainTable tbody td").click(function() {
            jQuery(".RadCalendarPopup").fadeOut("fast");
        });
    });

    function RowClick(sender, args) {
        currentRowIndex = args.get_gridDataItem().get_element().rowIndex;
    }

    function RowCreated(sender, args) { }
  
</script>

